#include "p2head.h"

waitingRoomMoitor::waitingRoomMoitor(){
	PatientWaitingCount = 0;
	waitingNurseCount = 0;
	nurseWaitingCount = 0;
	wrnStatus = 0;
	wrnTask = 1;
	examSheetQueue = new List;
}

void waitingRoomMoitor::test(){
	printf("I'm a waiting room monitor.\n");
}

struct form* waitingRoomMoitor::newform(){
	return (struct form* )malloc(sizeof(struct form));
}

struct examSheet* waitingRoomMoitor::newExamSheet(){
	struct examSheet *p;
	p = (struct examSheet* )malloc(sizeof(struct examSheet));
	return p;
}


examinationRoomMoitor::examinationRoomMoitor(){
	int i;
	for(i=0;i<6;i++)
		exRoom[i]=1;
}

doctorOfficeMonitor::doctorOfficeMonitor(){
	//doctorCount=0;
	nurseCount=0;
	roomNumber=0;
	//roomNumberS=1;
}

cashierCounterMonitor::cashierCounterMonitor()
{
     cashierState = true; 
     cashierWaitedCount = 0; 
     cashierCounterLock = new Lock("cashier_counter_lock");
     cashierCounterCV = new Condition("cashier_counter_cv"); 
}

cashierPatientMonitor::cashierPatientMonitor(){
             medicalFee = 0;  
             moneyPatientPay = 0;
             cashierPatientLock = new Lock("cashier_patient_lock");
             cashierPatientCV = new Condition("cashier_patient_cv");       
       
}
